package main

import "fmt"

func deferFunc1() {
	fmt.Println("first defer end")
}

func deferFunc2() {
	fmt.Println("second defer end")
}

func deferFunc3() {
	fmt.Println("third defer end")
}

func main() {
	defer deferFunc1()
	defer deferFunc2()
	defer deferFunc3()
	fmt.Println("main end")
}
